package top.dancun.easteacher.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.dancun.common.utils.R;
import top.dancun.easteacher.config.FeignConfig;

import java.util.List;
@Component
@RequestMapping("/eascourse/course")
@FeignClient(value = "EAS-course" ,configuration = FeignConfig.class)
public interface CourseFeign {
    @PostMapping("/listbyids")
    public R listByIds(@RequestBody List ids);
}
